<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
	<%@ page isELIgnored="false" %>
		<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
			<!-- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> -->
			<html>

			<head>
				<base href="<%=request.getContextPath()%>/">
				<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
				<title></title>
				<link rel="stylesheet" href="css/cytp.css" />
				<script type="text/javascript" src="js/jquery-1.x.js"></script>
				<script type="text/javascript" src="js/changeH.js"></script>

			</head>

			<body>
				<div id="pc">
					<div class="head">
						<div class="navBox">
							<!-- 导航栏 -->
							<div class="logo">
								<input type="image" src="img/headlogo.png"
									style="margin-left:200px;width:300px;height:80px" />
							</div>

							<div class="nav">
								<ul>

									<li id="din">

										<a href="/VoteWeb/articleListServlet">投票列表</a>

									</li>

									<li class="seleLi">

										<a href="admin/addNewtp.jsp">添加新投票</a>

									</li>

									<li>

										<a href="articleListServlet?flag=me">维护</a>

									</li>
									<li>
										<a href="Statistics">统计分析</a>
									</li>



								</ul>
								<div class="an">
									<a class="esta" href="javascript:(0)">你好，${sessionScope.username}</a>
								</div>

								<div class="an3"><a href="/VoteWeb/logout">注销</a></div>
							</div>
						</div>
					</div>
					<form action="attendVoteServlet" method="post">
						<input type="hidden" name="articleid" value="${requestScope.article.articleid}" />
						<input type="hidden" name="type" value="${article.type}" />
						<table class="table3">
							<tr>
								<td class="seleLi" colspan="2"><img src="img/title_ico.gif"
										style="vertical-align: middle" />&nbsp;&nbsp;参与投票</td>
							</tr>
							<tr>
								<td colspan="2">
									<div class="line3"></div>
									<p class="p11">
										<img src="img/vote_icon.gif" /> ${requestScope.article.title}
									</p>
								</td>
							</tr>
							<c:forEach var="option" items="${options}">
								<%!int count=1;%>
									<tr>
										<td width="40px">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;${count}</td>
										<td>
											<c:choose>
												<c:when test="${article.type==1 }">
													<input type="checkbox" name="chbox" class="bb"
														value="${option.id}" />
												</c:when>
												<c:otherwise>
													<input type="radio" name="radio" class="bb" value="${option.id}" />
												</c:otherwise>
											</c:choose> <label>${option.value}</label>
										</td>
									</tr>
							</c:forEach>
							<tr>
								<td></td>
								<td><input type="submit" src="img/button_vote.gif" />
								</td>
							</tr>
						</table>
					</form>
				</div>
			</body>

			</html>